home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d2 / pcwiz01.arc / XCOPY.INS < prev   
Text File  |  1991-08-22  |  4KB  |  108 lines

  1. XCOPY    Is an improved version of the COPY command.
  2.          Instead of reading and writing one file at
  3.          a time, like the copy command, XCOPY reads
  4.          multiple files into memory and thens copies
  5.          them. When used with its switches, XCOPY is
  6.          extrememy fast and versatile. Perhaps this
  7.          command should have been named SUPER-Copy!
  8.  
  9.  
  10. Format:  XCOPY [D:Path]SFile [D:Path]DFile [Switches]
  11.  
  12.   /A   copies only those files that have their archive
  13.        bit set (+A). Does NOT reset the archive bit.
  14.  
  15.   /E   when used with the /S switch will create exact
  16.        replicas of the source directory structure on
  17.        the target even if one or more of the subdirec-
  18.        tories will be EMPTY when copying is completed.
  19.   /M   copies only those files that have their archive
  20.        bit set (+A). However, unlike the /A switch, the
  21.        archive bit will be reset (-A) after copying is
  22.        completed.
  23.  
  24.   /P   PROMPTS the user for a [Y/N] response before
  25.        each file is copied.
  26.  
  27.   /S   includes SUBDIRECTORIES in the copy operation.
  28.        If a corresponding subdirectory does not exist
  29.        on the TARGET to receive the copied file(s), it
  30.        will be automatically created. (Will not create
  31.        EMPTY subdirectories unless the /E switch is
  32.        used.
  33.  
  34.   /V   causes DOS to VERIFY each file as it is copied
  35.        to ensure that it is an EXACT replica of the
  36.        SOURCE.
  37.   /W   WAITS for user to insert the proper diskette
  38.        before commencing XCOPY operations.
  39.  
  40.   /D:mm:dd:yy   copies only those files created or mod-
  41.                 ified ON or AFTER the date specified.
  42.  
  43. Example:           XCOPY \123\*.WK1 A:
  44.  
  45.    First reads as many of the *.WK1 files in the \123
  46.    files as will fit into available memory and then
  47.    copies these files to the diskette in drive A. Will
  48.    repeat this process until all *.WK1 files have been
  49.    transferred.
  50.  
  51. Example:         XCOPY \123\*.WK1 A: /A
  52.  
  53.    Same as above, except ONLY those files that have an
  54.    archive bit of +A will be copied.
  55.  
  56. Example:         XCOPY \123\*.* A: /A /S
  57.  
  58.    Will copy ALL files in the SOURCE \123 directory AND
  59.    its SUBDIRECTORIES that have an archive bit of +A to
  60.    the diskette in drive A. If the subdirectory does
  61.    not already exist on the diskette in drive A, it will
  62.    be created. (Will NOT reset the archive bit of the
  63.    copied SOURCE files to -A.)
  64.  
  65.  
  66. Example:         XCOPY \123\*.* A: /M /S
  67.  
  68.    Same as above, except the archive bit of the copied
  69.    SOURCE files WILL be reset to -A. (This allows these
  70.    files to be EXCLUDED in subsequent XCOPY /A or /M
  71.    operations.)
  72.  
  73. [*]  Unlike BACKUP, the XCOPY command does not prompt
  74.      for additional diskettes when the TARGET diskette
  75.      becomes FULL. This problem can be overcome by
  76.      using the following technique:
  77.  
  78.  
  79.  (1)  First set the archive bit of all files in the
  80.       SOURCE directory and its subdirectories to +A
  81.       by issuing an [Attrib +A /S] command. (Ensure
  82.       you make the directory that will be the SOURCE
  83.       the CURRENT directory by issuing the proper CD\
  84.       command.)
  85.  
  86.  
  87.  (2)  Next, issue the appropriate XCOPY command for
  88.       the files that you want copied that includes the
  89.       /M and the /S switches.
  90.  
  91.  (3)  When the TARGET diskette becomes full XCOPY will
  92.       terminate and give  an "insufficient disk space"
  93.       message. Insert a fresh diskette and reissue the
  94.       same command you gave in step 2, above. XCOPY
  95.       will then start copying the files that have NOT
  96.       had the archive bit reset to -A from using the
  97.       /M switch in the first XCOPY command. Repeat this
  98.       process until all files have been successfully
  99.       transferred to the diskettes.
  100.  
  101.  
  102. Example:         CD\123
  103.                  ATTRIB +A  C:\123\*.*  /S
  104.                  XCOPY C:\123\*.* A: /M /S
  105.  
  106. [*]  Repeat XCOPY Command with each diskette until the
  107.      "insufficient disk space" message is not given.
  108.